import proFetch from '../../../../../hrpub/common/utils/project-fetch';

export default function() {

    const {editTable} = this.props;

    let rows = editTable.getCheckedRows('ncc600704list');


    // this.cardView.openCardViewModal(rows);
    this.wpsview.openView(rows)
    // let selRow = editTable.getClickRowIndex('ncc600704list');

    // let postData = {
    //     allPsnPk: '',
    //     pk_org: this.state.humanResourceOrganizationValue.refpk,
    //     selRow: selRow ? selRow.index : 0
    // }

    // let psnDoc = rows.map((item) => {
    //     return item.values['pk_psndoc'].value
    // });

    // postData['allPsnPk'] = psnDoc.join('_');

    // proFetch({
    //     url: '/nccloud/hrhi/psndoc/PsndocCardReptQueryAction.do',
    //     body: postData
    // })
    //     .then((res) => {
    //         if(res.success) {
    //             location.port ? 
    //                 window.open("uclient://start/http://" + location.hostname + ":" + location.port+ res.data) : 
    //                 window.open("uclient://start/http://" + location.hostname + res.data)
    //         }
    //     })

}